	<div id="myHouse">
        <?php echo $this->htmlLeftCol;?>
        <div class="float-right" style="margin-left:10px;">
        	<div class="adTitle">Dành cho Quảng cáo</div>
        	<a href="#"><img src="<?php echo EVENT_STATIC_SERVER;?>/images/ad_160x600.gif" width="160" height="600" alt="ad" /></a>
        </div>
        <div class="colLarge float-right">
            <!--Start: box Thong Tin-->
            <div class="boxed">
                <div class="boxTop">
                    <div class="boxTopLeft_SK">
                        <div class="boxTopRight_SK">
                            <div class="tab">
                                <div class="tabItemS"><span><a href="#">Ảnh của sự kiện</a></span></div>
                                <div class="tabItem"><span><a href="/event/photo/add/<?php echo $this->event->eid;?>">Thêm ảnh</a></span></div>
                                <div class="tabItem"><span><a href="http://photo.tamtay.vn/upload" target='_blank'>Đăng ảnh</a></span></div>
                            </div>
                        </div>
                    </div>
                </div>
                <div class="boxBody eItemList" style="padding:10px;">
                    
                    <span style="float:left;  margin:7px 10px 8px 10px;">
                    	Có <strong><?php echo $this->totalPhoto;?></strong> photo
                    </span>
                	<a href="/event/detail/<?php echo $this->event->eid;?>" class="back_SK">Quay về: <?php echo $this->event->event_name;?></a>
                	
                    <div class="clear"></div>
                    <?php  if(isset($this->removeSuccess) && $this->removeSuccess==1){?>
					<div class="alert-1">Bạn đã loại bỏ <?php echo $this->removeCount;?> Album ảnh ra khỏi sự kiện thành công.</div>
					<?php }?>
                    <form action="/event/photo/<?php echo $this->event->eid;?>?page=<?php echo $this->page;?>" method="POST" onsubmit="return confirm('Bạn chắc chắn muốn xóa những album được chọn khỏi sự kiện');" id="event_item_form">
                    <ul class="listItem21">
                    <?php 
                    	$can_delete = false;
                    	$totalPhoto = count( $this->photoList);
                    	for($i=0; $i<$this->limit && $i<$totalPhoto; $i++){
                    		$photo = $this->photoList[$i];
                    		$imgPreview = EVENT_STATIC_SERVER.'/images/nophoto.gif';
                    		if($photo->thumbnail != ""){
                                if(isset($photo->img_server) && $photo->img_server != ''){
                                    $imgPreview = 'http://img'.($photo->img_server>1?$photo->img_server:'').".tamtay.vn/".$photo->thumbnail;
                                }
                                else
                    			    $imgPreview = EVENT_IMG_SERVER."/".$photo->thumbnail;
                    		}
                    		$can_delete=($this->isAdmin || $photo->uid==$this->uid);
                    ?>
                      <li>
                        <div class="item22">
                        	<div style="margin-bottom:4px;">
                        		<a href="http://photo.tamtay.vn/photo/view/<?php echo $photo->aid;?>"><img src="<?php echo $imgPreview;?>" alt="<?php echo $photo->album_name;?>" onload="resizeImage(this,120, 90)" /> </a>
                        		<div class="clear"></div>
                        	</div>
                        <?php if($can_delete){?>
                        	<div style="margin-bottom:4px;">
	                          <input id="item_<?php echo $photo->aid;?>" type="checkbox" value="<?php echo $photo->aid;?>" name="aids[]" />
	                          <span class="fontSize-11 float-left"><label for="item_<?php echo $photo->aid;?>">Chọn  </label></span><a href="javascript:event_delete_item(<?=$photo->aid?>, 'photo');" class="fix" title="Loại bỏ khỏi sự kiện">Xoá</a>
	                          <div class="clear"></div>
                          	</div>
                        <?php }?>
                          <a href="http://photo.tamtay.vn/photo/view/<?php echo $photo->aid;?>" class="list-ItemText"><strong><?php echo $photo->album_name;?></strong></a> 
                        </div>
                      </li>
                      <?php if($i%4==3){?>
                      <li class="clearThis"></li>
                      <?php }?>
                    <?php
                    	}
                    ?>
                     </ul>
                    <div class="clear"></div>
                    <?php if($can_delete && $totalPhoto){?>
                    <div style="padding:5px 0 20px 0;clear:both;">
                        <div class="buttonUp" style="background:none;">
                        	<input type="submit" class="blogButton" value="Loại bỏ" title="Loại bỏ các album đã chọn ra khỏi danh sách" /></div>
                        <input type="hidden" name="photo_delete" value="1">
                        <div class="clear"></div>
                    </div>
                    </form>
                    <div class="clear"></div>
                    <?php }?>
                    <?php 
                    if($totalPhoto){
                    	echo $this->pager;
                    }?>
                </div>
                <div class="boxBottom"><span><b></b></span></div>
            </div>
            <!--End: box Thong Tin-->
        </div>
        <div class="clear"></div>
    </div>
    <div class="clear"></div>